﻿using System;
using System.Collections.Generic;
using System.Text;



namespace TADF.Com.Alpha.Core.View.Component
{
    public class Text : Component
    {
        protected string _text;

        public Text() { }

        public Text(string id)
        {
            new Text(id, "");
        }

        public Text(string id, string text):base(id)
        {
            _text = text;
        }

        public void SetValue(string text)
        {
            _text = text;
        }

        public new string AttrXml()
        {
            return base.AttrXml() + "<text>" + WrapCData(_text) + "</text>";
        }

        public new string GetTypeName()
        {
            return "TextInput";
        }
    }
}
